import os

import build

Import('env')

local_env = env.Clone()

local_env.AppendUnique(CPPDEFINES=['BOOST_TEST_DYN_LINK'])
local_env.AppendUnique(LIBS=['boost_unit_test_framework'])

sources = [
    'core/bytearray_test.cpp',
    'core/bytes_test.cpp',
    'core/exception_translator_test.cpp',
    'core/import_test.cpp',
    'core/kwargs_test.cpp',
    'core/tuple_test.cpp',
    'core/util_test.cpp',
    'core/version_test.cpp',
    'datetime/date_test.cpp',
    'datetime/datetime_test.cpp',
    'datetime/datetime_time_test.cpp',
    'datetime/timedelta_test.cpp',
    'datetime/tzinfo_test.cpp',
    'disable_signal.cpp',
    'logging/filter_test.cpp',
    'logging/formatter_test.cpp',
    'logging/handler_test.cpp',
    'logging/LoggerFixture.cpp',
    'logging/logger_adapter_test.cpp',
    'logging/logger_test.cpp',
    'logging/log_record_test.cpp',
    'logging/logging_config_test.cpp',
    'logging/module_test.cpp',
    'logging/types_test.cpp',
    'logging/user_filter_test.cpp',
    'logging/user_handler_test.cpp',
    'queue/queue_test.cpp',
    'test.cpp',
    'time/time_test.cpp',
    'util.cpp',
    'uuid/uuid_test.cpp',
    ]

build.program(
    local_env,
    'ackward_test',
    sources,
    deps=['core',
          'datetime',
          'logging',
          'queue',
          'time',
          'uuid'
          ])
